<html>

<head>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
<title>WMKDIR(</title>
</head>

<body bgcolor="#FFFFFF">

<pre>
<!-- Manpage converted by man2html 3.0.1 -->

<b>WMKDIR(2)</b>		  FreeBSD System Calls Manual		      <b>WMKDIR(2)</b>


</pre>

<h2>NAME</h2>

<pre>
     <b>wmkdir</b> - make a directory file, wide character version


</pre>

<h2>SYNOPSIS</h2>

<pre>
     <b>#include</b> <b>&lt;wchar.h&gt;</b>

     <i>int</i>
     <b>wmkdir</b>(<i>const</i> <i>wchar_t</i> <i>*path</i>, <i>mode</i><b>_</b><i>t</i> <i>mode</i>)


</pre>

<h2>DESCRIPTION</h2>

<pre>
     The directory <i>path</i> (wide character string)is created with the access permissions specified by
     <i>mode</i> and restricted by the <b>umask(2)</b> of the calling process.

     The directory's owner ID is set to the process's effective user ID.  The
     directory's group ID is set to that of the parent directory in which it
     is created.


</pre>

<h2>RETURN VALUES</h2>

<pre>
     A 0 return value indicates success.  A -1 return value indicates an er-
     ror, and an error code is stored in <i>errno</i>.


</pre>

<h2>ERRORS</h2>

<pre>
     <b>wmkdir</b>() will fail and no directory will be created if:

     [ENOTDIR]	 A component of the path prefix is not a directory.

     [ENAMETOOLONG]
		 A component of a pathname exceeded 255 characters, or an en-
		 tire path name exceeded 1023 characters.

     [ENOENT]	 A component of the path prefix does not exist.

     [EACCES]	 Search permission is denied for a component of the path pre-
		 fix.

     [ELOOP]	 Too many symbolic links were encountered in translating the
		 pathname.

     [EPERM]	 The <i>path</i> argument contains a byte with the high-order bit
		 set.

     [EROFS]	 The named file resides on a read-only file system.

     [EEXIST]	 The named file exists.

     [ENOSPC]	 The new directory cannot be created because there is no space
		 left on the file system that will contain the directory.

     [EDQUOT]	 The user's quota of inodes on the file system on which the
		 directory is being created has been exhausted.

     [EIO]	 An I/O error occurred while making the directory entry or al-

		 locating the inode.

     [EIO]	 An I/O error occurred while reading from or writing to the
		 file system.

     [EFAULT]	 <i>Path</i> points outside the process's allocated address space.


</pre>

<h2>SEE ALSO</h2>

<pre>
     <b>chmod(2)</b>,	<b>stat(2)</b>,  <b>umask(2)</b>


</pre>

<hr>

<address>
    Man(1) output converted with <a
    href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</address>
</body>
</html>
